
class Sundae{
    private Sundae(){}
    static Sundae makeASundae(){
        return new Sundae();
    }
}


public class IceCream {
    public static void main(String[] args) {
        // Sundae x = new Sundae(); 无法创建
        Sundae x = Sundae.makeASundae();
    }
}
